package cn.kgc.tangcco.bean01;

/**
 * @author 李昊哲
 */
public class Person17 {
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 性别 1代表男 0代表女
     */
    private int gender;
    /**
     * 年龄
     */
    private int age;

    public Person17() {
    }

    public Person17(String nickname, int age) {
        // this()代表调用本类中的构造方法
        // this调用本类构造方法必须在方法体的第一行
        this(nickname, 1, age);
    }

    public Person17(String nickname, int gender, int age) {
        this.nickname = nickname;
        this.gender = gender;
        this.age = age;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}